//
//  YQTalkBaseTableViewCell.m
//  EPA--1
//
//  Created by lanou3g on 16/4/23.
//  Copyright © 2016年 刘永庆. All rights reserved.
//

#import "YQTalkBaseTableViewCell.h"
#import "YQTextTableViewCell.h"
#import "YQTalkModel.h"
@implementation YQTalkBaseTableViewCell

- (void)awakeFromNib {
    
}
+ (instancetype)cellWithTalkModel:(YQTalkModel *)model tableView:(UITableView *)tableView  index:(NSIndexPath *)indexPath
{
    if (model.coverimg.length == 0) {
        YQTalkBaseTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"textCell" forIndexPath:indexPath];
        cell.model = model;
        return cell;
    }
    else {
        YQTalkBaseTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"imageCell" forIndexPath:indexPath];
        cell.model = model;
        return cell;
    }
    return nil;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}

@end
